import time

from zuoye_831.Base import Base
from selenium.webdriver.common.by import By

class Page(Base):
    login_loc = (By.CLASS_NAME,'headerLogin')
    def login(self):
        self.click(self.login_loc)

    username_loc = (By.NAME,'uname')
    def username(self):
        self.send_keys(self.username_loc,'15235688537')

    password_loc = (By.NAME,'_pwd')
    def password(self):
        self.send_keys(self.password_loc,'Aa123123')

    loginbtn_loc = (By.NAME,'bi_Usuallogin')
    def loginbtn(self):
        self.click(self.loginbtn_loc)

    def jiuxian_01(self):
        self.open('https://www.jiuxian.com/')
        time.sleep(1)
        self.login()
        time.sleep(1)
        self.username()
        time.sleep(1)
        self.password()
        time.sleep(15)
        self.loginbtn()
        time.sleep(3)

